package com.website.homepage.dao;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.orm.ibatis.SqlMapClientTemplate;


public class HomepageDaoImpl implements IHomepageDao {
	public static Logger log = Logger.getLogger(HomepageDaoImpl.class);
	private SqlMapClientTemplate sqlMapClienet;
	public List<List<Map>> managingFinancialInit()
	{
		List<String> list = new ArrayList<String>();
		List<List<Map>> resultList = new ArrayList<List<Map>>();
		List<Map> listMap = null;
		list.add("homepageObj");
		list.add("homepageWay");
		list.add("homepageMoney");
		list.add("homepageTime");
		for(String string:list)
		{
			listMap = new ArrayList<Map>();
			try
			{
			listMap = sqlMapClienet.queryForList(string);
			}
			catch(Exception e)
			{
				log.info("查询理财下拉框信息失败", e);
			}
			resultList.add(listMap);
			
		}
		return resultList;
		
	}
	public void setSqlMapClienet(SqlMapClientTemplate sqlMapClienet) {
		this.sqlMapClienet = sqlMapClienet;
	}



}
